package com.example.basefream.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* @author L-HN
* @since 2022-04-27
*/
@ApiModel(value ="（勿删）实况告警列表")
@Data
@Accessors(chain = true)
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
public class BizAlertUrl extends Model<BizAlertUrl> {

private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "节点序号")
        @TableId(value = "biz_id", type = IdType.AUTO)
        private Integer bizId;

    @ApiModelProperty(value = "拓扑编码")
    private String bizCode;

    @ApiModelProperty(value = "父节点编码")
    private String bizFatherCode;

    @ApiModelProperty(value = "子节点编码")
    private String bizSonCode;

    @ApiModelProperty(value = "节点名称")
    private String bizNodeName;



@Override
protected Serializable pkVal() {
    return this.bizId;
}
}